<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
.container {
  font-size: 0; /* 消除inline-block间隙 */
}

.column {
  width: 50%;
  padding: 20px;
  border: 1px solid red;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  font-size: 16px; /* 重置字体大小 */
}
  </style>
</head>
<body>
  <div class="container">
      <div class="column"></div>
  </div>

</body>
</html>